<%@ taglib uri="http://java.sun.com/jsf/html" prefix="h"%>
<%@ taglib uri="http://java.sun.com/jsf/core" prefix="f"%>

<jsp:useBean id="user" class="de.graffiti.beans.Login" scope="session"/>

<% 
	HttpSession session1=request.getSession();
	String username= (String) session1.getAttribute("userid");
	out.println("Name : " + username + "<br/>");
	out.println("session id:"+session.getId());
%>
<html>
<head>
</head>
<body>
<h1>Profil bearbeiten</h1>

<f:view>
	<h:form>
	TEST2<br></br>
	Name: <%= user.getName() %><br>
	
	<table>
	<tr>
		<td align="left"><h:commandButton value="Startseite" action="#{registerBean.register}" /></td>
		<td align="right"><h:commandButton value="Logout" action="#{registerBean.register}" /></td>
	</tr>
		
	<!-- <h:outputText value="#{loginBean.name}" /><br></br> -->
	<!-- <h:commandButton value="Speichern" action="#{editProfileBean.editProfile}" /><br></br> -->
	<!-- <h:messages />
		<h:outputText value="Benutzername:" />
		<h:inputText id="name" value="#{registerBean.name}" required="true">
			<f:validateLength minimum="2" maximum="15"/>
		</h:inputText>		
		<br>
		<h:commandButton value="Registrieren" action="#{registerBean.register}" />
	-->
	</h:form>
</f:view>

</body>
</html>